package xinxin.com.BuilderPattern.Person;

import java.awt.*;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/3/25 17:45
 */
public abstract class PersonBuilder {
    protected Color color;

    public PersonBuilder(Color color) {
        this.color = color;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public abstract void BuildHead(Graphics graphics);
    public abstract void BuildBody(Graphics graphics);
    public abstract void BuildArmLeft(Graphics graphics);
    public abstract void BuildArmRight(Graphics graphics);
    public abstract void BuildLegLeft(Graphics graphics);
    public abstract void BuildLegRight(Graphics graphics);
}
